<%@ tag pageEncoding="UTF-8" %>
<%--<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %>--%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>


<!DOCTYPE HTML>
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>LINBIKE</title>

    <!-- Fav and touch icons -->
    <link rel="shortcut icon" href="${pageContext.request.contextPath}/images/linbike.ico" type="image/x-icon"/>
    <!-- Bootstrap Core CSS -->
    <link href="${pageContext.request.contextPath}/js/bootstrap/3.3.6/bootstrap.min.css" rel="stylesheet">
    <!-- MetisMenu CSS -->
    <link href="${pageContext.request.contextPath}/css/metisMenu.min.css" rel="stylesheet">
    <!-- Timeline CSS -->
    <link href="${pageContext.request.contextPath}/css/timeline.css" rel="stylesheet">
    <!-- Custom CSS -->
    <link href="${pageContext.request.contextPath}/css/sb-admin-2.css" rel="stylesheet">
    <!-- Morris Charts CSS -->
    <%--<link href="${pageContext.request.contextPath}/js/morris/morris.css" rel="stylesheet">--%>
    <!-- Custom Fonts -->
    <link href="${pageContext.request.contextPath}/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <!-- jQuery -->
    <script src="${pageContext.request.contextPath}/js/jquery/1.11.3/jquery.min.js"></script>
    <!-- Bootstrap Core JavaScript -->
    <script src="${pageContext.request.contextPath}/js/bootstrap/3.3.6/bootstrap.min.js"></script>
    <!-- Metis Menu Plugin JavaScript -->
    <script src="${pageContext.request.contextPath}/js/metisMenu.min.js"></script>
    <!-- Morris Charts JavaScript -->
    <%--<script src="../bower_components/raphael/raphael-min.js"></script>--%>
    <%--<script src="${pageContext.request.contextPath}/js/morris/morris.min.js"></script>--%>
    <%--<script src="${pageContext.request.contextPath}/js/morris/morris-data.js"></script>--%>
    <!-- Custom Theme JavaScript -->
    <script src="${pageContext.request.contextPath}/js/sb-admin-2.js"></script>
    <%--ztree--%>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/zTreeStyle/zTreeStyle.css" type="text/css">
    <script src="${pageContext.request.contextPath}/js/ztree/jquery.ztree.core.js"></script>
    <script src="${pageContext.request.contextPath}/js/ztree/jquery.ztree.excheck.js"></script>
    <script src="${pageContext.request.contextPath}/js/ztree/jquery.ztree.exedit.js"></script>
    <%--图片和视频样式--%>
    <link href="//cdn.bootcss.com/bootstrap-fileinput/4.2.7/css/fileinput.min.css" media="all" rel="stylesheet"
          type="text/css"/>
    <script src="//cdn.bootcss.com/bootstrap-fileinput/4.2.7/js/fileinput.min.js"></script>
    <script src="//cdn.bootcss.com/bootstrap-fileinput/4.2.7/js/fileinput_locale_zh.js"></script>
    <%--工具js--%>
    <script src="${pageContext.request.contextPath}/js/tools.js"></script>
    <%--公用css --%>
    <link href="${pageContext.request.contextPath}/css/public.css" rel="stylesheet" type="text/css">
</head>

<script type="text/javascript">
    var ctxPath = "<%=request.getContextPath() %>";
    function getToday(num) {
        var date = new Date();
        date.setDate(date.getDate());
        var y = date.getFullYear();
        var m = date.getMonth() + num;//获取当前月份的日期

        if (m == 0) {
            y = y - 1;
            m == 12;
        }


        if (m < 10) m = '0' + m;
        var d = date.getDate();
        if (d < 10) d = '0' + d;
        return y + "-" + m + "-" + d;
    }

    function wol() {

        //var date = new Date();
        //var dateString = date.getFullYear()+"-0"+(date.getMonth()+1)+"-"+date.getDate();
        $(".date").val(getToday(1));
        $(".lastmonth").val(getToday(0));


    }

    $(function(){
        var platform = "${sessionScope.account.platform_code}";
        if(platform == "qiqi"){
            middle();
        }
    })

    function comMiddle(){
        var platformc = "${sessionScope.account.platform_code}";
        if(platformc != "qiqi"){
            middle();
        }
    }

</script>
<body >
<div id="page-wrapper">
    <jsp:doBody/>
</div>
</body>
</html>
